package com.trade.common.utils;

import java.util.List;

/**
 * Description:分页查询结果封装
 *
 * @JDK Version:1.8.0_40
 * Version: V1.0
 * Author: Leisk
 * Date: 2016/3/3 17:59
 */
public class PageBean<T>{
    /**总页数**/
    private int totalPages;
    /**当前查询页**/
    private int pageNum;
    /**总条数**/
    private long totalSize;
    /**每页数据条数**/
    private int pageSize;
    /**结果集**/
    List<T> rows;

    public int getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public long getTotalSize() {
        return totalSize;
    }

    public void setTotalSize(long totalSize) {
        this.totalSize = totalSize;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }
}
